class Currency {
    constructor(canadianDollar) {
        this.canadianDollar = canadianDollar;
    }

    roundTwo (amount) {
        return Math.round(amount * 100)/100;
    }

    canadianToUs(canadian) {
        return this.roundTwo(canadian * this.canadianDollar);
    }

    usToCanadian(us) {
        return this.roundTwo(us / this.canadianDollar);
    }

}


module.exports = Currency
